package com.henu.rescue.service.impl;

import com.henu.rescue.entity.Supervise;
import com.henu.rescue.mapper.SuperviseMapper;
import com.henu.rescue.service.SuperviseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SuperviseServiceImpl implements SuperviseService {

    @Autowired
    private SuperviseMapper superviseMapper;

    @Override
    public String selectNameById(Integer id) {
        return superviseMapper.selectNameById(id);
    }

    @Override
    public List<Supervise> selectAll() {
        return superviseMapper.selectAll();
    }
}
